import { ApiProperty } from '@nestjs/swagger';

export class Cat {
  @ApiProperty({ example: 1, description: '猫咪ID' })
  id: number;

  @ApiProperty({ example: 'Whiskers', description: '猫咪的名字' })
  name: string;

  @ApiProperty({ example: 3, description: '猫咪的年龄' })
  age: number;

  @ApiProperty({
    example: '波斯猫',
    description: '猫咪的品种',
    required: false,
  })
  breed?: string;

  @ApiProperty({
    example: 'https://example.com/cat.jpg',
    description: '猫咪的照片URL',
    required: false,
  })
  imageUrl?: string;

  @ApiProperty({
    example: '2023-01-01T00:00:00.000Z',
    description: '创建时间',
  })
  createdAt: Date;
}
